From 4d1308afaafa43ff68d6ecc493e36ee8f3ac9942 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 11 Dec 2014 12:24:05 +0100 Subject: [PATCH] VMX: don't allow PVH to reach handle_mmio() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PVH guests accessing I/O ports via string ops is not supported yet. Reported-by: Roger Pau Monné Signed-off-by: Jan Beulich Acked-by: Mukesh Rathor Acked-by: Roger Pau Monné Acked-by: Kevin Tian Release-Acked-by: Konrad Rzeszutek Wilk --- xen/arch/x86/hvm/vmx/vmx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 0bf92b25c2..f2554d68d2 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3086,7 +3086,8 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) if ( exit_qualification & 0x10 ) { /* INS, OUTS */ - if ( !handle_mmio() ) + if ( unlikely(is_pvh_vcpu(v)) /* PVH fixme */ || + !handle_mmio() ) hvm_inject_hw_exception(TRAP_gp_fault, 0); } else -- 2.30.2